#!/usr/bin/env ruby
require 'defaultDriver.rb'

endpoint_url = ARGV.shift
obj = Soap.new(endpoint_url)

# run ruby with -d to see SOAP wiredumps.
obj.wiredump_dev = STDERR if $DEBUG

# SYNOPSIS
#   Create(parameters)
#
# ARGS
#   parameters      CreateRequest - {http://exacttarget.com/wsdl/partnerAPI}CreateRequest
#
# RETURNS
#   parameters      CreateResponse - {http://exacttarget.com/wsdl/partnerAPI}CreateResponse
#
parameters = nil
puts obj.create(parameters)

# SYNOPSIS
#   Retrieve(parameters)
#
# ARGS
#   parameters      RetrieveRequestMsg - {http://exacttarget.com/wsdl/partnerAPI}RetrieveRequestMsg
#
# RETURNS
#   parameters      RetrieveResponseMsg - {http://exacttarget.com/wsdl/partnerAPI}RetrieveResponseMsg
#
parameters = nil
puts obj.retrieve(parameters)

# SYNOPSIS
#   Update(parameters)
#
# ARGS
#   parameters      UpdateRequest - {http://exacttarget.com/wsdl/partnerAPI}UpdateRequest
#
# RETURNS
#   parameters      UpdateResponse - {http://exacttarget.com/wsdl/partnerAPI}UpdateResponse
#
parameters = nil
puts obj.update(parameters)

# SYNOPSIS
#   Delete(parameters)
#
# ARGS
#   parameters      DeleteRequest - {http://exacttarget.com/wsdl/partnerAPI}DeleteRequest
#
# RETURNS
#   parameters      DeleteResponse - {http://exacttarget.com/wsdl/partnerAPI}DeleteResponse
#
parameters = nil
puts obj.delete(parameters)

# SYNOPSIS
#   Query(parameters)
#
# ARGS
#   parameters      QueryRequestMsg - {http://exacttarget.com/wsdl/partnerAPI}QueryRequestMsg
#
# RETURNS
#   parameters      QueryResponseMsg - {http://exacttarget.com/wsdl/partnerAPI}QueryResponseMsg
#
parameters = nil
puts obj.query(parameters)

# SYNOPSIS
#   Describe(parameters)
#
# ARGS
#   parameters      DefinitionRequestMsg - {http://exacttarget.com/wsdl/partnerAPI}DefinitionRequestMsg
#
# RETURNS
#   parameters      DefinitionResponseMsg - {http://exacttarget.com/wsdl/partnerAPI}DefinitionResponseMsg
#
parameters = nil
puts obj.describe(parameters)

# SYNOPSIS
#   Execute(parameters)
#
# ARGS
#   parameters      ExecuteRequestMsg - {http://exacttarget.com/wsdl/partnerAPI}ExecuteRequestMsg
#
# RETURNS
#   parameters      ExecuteResponseMsg - {http://exacttarget.com/wsdl/partnerAPI}ExecuteResponseMsg
#
parameters = nil
puts obj.execute(parameters)

# SYNOPSIS
#   Perform(parameters)
#
# ARGS
#   parameters      PerformRequestMsg - {http://exacttarget.com/wsdl/partnerAPI}PerformRequestMsg
#
# RETURNS
#   parameters      PerformResponseMsg - {http://exacttarget.com/wsdl/partnerAPI}PerformResponseMsg
#
parameters = nil
puts obj.perform(parameters)

# SYNOPSIS
#   Configure(parameters)
#
# ARGS
#   parameters      ConfigureRequestMsg - {http://exacttarget.com/wsdl/partnerAPI}ConfigureRequestMsg
#
# RETURNS
#   parameters      ConfigureResponseMsg - {http://exacttarget.com/wsdl/partnerAPI}ConfigureResponseMsg
#
parameters = nil
puts obj.configure(parameters)

# SYNOPSIS
#   Schedule(parameters)
#
# ARGS
#   parameters      ScheduleRequestMsg - {http://exacttarget.com/wsdl/partnerAPI}ScheduleRequestMsg
#
# RETURNS
#   parameters      ScheduleResponseMsg - {http://exacttarget.com/wsdl/partnerAPI}ScheduleResponseMsg
#
parameters = nil
puts obj.schedule(parameters)

# SYNOPSIS
#   VersionInfo(parameters)
#
# ARGS
#   parameters      VersionInfoRequestMsg - {http://exacttarget.com/wsdl/partnerAPI}VersionInfoRequestMsg
#
# RETURNS
#   parameters      VersionInfoResponseMsg - {http://exacttarget.com/wsdl/partnerAPI}VersionInfoResponseMsg
#
parameters = nil
puts obj.versionInfo(parameters)

# SYNOPSIS
#   Extract(parameters)
#
# ARGS
#   parameters      ExtractRequestMsg - {http://exacttarget.com/wsdl/partnerAPI}ExtractRequestMsg
#
# RETURNS
#   parameters      ExtractResponseMsg - {http://exacttarget.com/wsdl/partnerAPI}ExtractResponseMsg
#
parameters = nil
puts obj.extract(parameters)

# SYNOPSIS
#   GetSystemStatus(parameters)
#
# ARGS
#   parameters      SystemStatusRequestMsg - {http://exacttarget.com/wsdl/partnerAPI}SystemStatusRequestMsg
#
# RETURNS
#   parameters      SystemStatusResponseMsg - {http://exacttarget.com/wsdl/partnerAPI}SystemStatusResponseMsg
#
parameters = nil
puts obj.getSystemStatus(parameters)


